package com.AJava1710D.IO;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * 作者: LCG
 * 日期: 2020/7/1 09:37
 * 描述: 构建一个Socket服务端
 */
public class IOServer {

    public static void main(String[] args) throws IOException {

        ServerSocket serverSocket=new ServerSocket(9998);

        IORunnerServer ioRunnerServer=new IORunnerServer(serverSocket);

        Thread thread1=new Thread(ioRunnerServer,"T1");
        Thread thread2=new Thread(ioRunnerServer,"T2");
        Thread thread3=new Thread(ioRunnerServer,"T3");

        thread1.start();
        thread2.start();
        thread3.start();


    }

}
